package com.sino.uam.support.servlet;

import java.net.MalformedURLException;

import com.caucho.hessian.client.HessianProxyFactory;
import com.sino.uam.rbac.IUser;

public class TestService {
    /**
     * @param args
     */
    public static void main(String[] args) {
        String url = "http://localhost:8080/bsm/userClient";
        HessianProxyFactory factory = new HessianProxyFactory();
        factory.setReadTimeout(10000L);
        try {
            IUser user = (IUser) factory.create(IUser.class, url);
            user.getPrivileges();
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
    }

}
